package com.han.observer;

/**
 * @ClassName WeixinUser
 * @Description 具体的观察角色类
 * @Author duoduo Han
 * @Date 2024/6/17 10:45
 */
public class WeixinUser implements Observer {
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);

    }
}
